<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored ="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>明细查看页</title>
</head>
<body align="center"> 
<h1>laotou99 图书管理系统</h1>

<c:url var="formAction" value="/borrowbook/showAllBorrowBook" />
<a href="${formAction}">返回</a>
<h2>借书单明细</h2>
<div align="center">
<c:url var="formAction2" value="/borrowbook/addborrowBookDetail" />
<a href="${formAction2}/${borrowOrderDetail.id}">添加新明细</a>
<table border="0">
	<tr><td>id</td><td>${borrowOrderDetail.id}</td></tr>	
	<tr><td>借书订单编号</td><td>${borrowOrderDetail.borno}</td></tr>
	<tr>
	<td>订单创建时间</td>
	<td>
	<fmt:formatDate type="both" dateStyle="full" 
		value="${borrowOrderDetail.createtime}"/>
	</td>
	</tr>
	<tr>
	<td>借书时间</td>
	<td>
	<fmt:formatDate type="both" dateStyle="full" 
		value="${borrowOrderDetail.bortime}"/>
	</td>
	</tr>
	<tr><td>客户名字</td><td>${borrowOrderDetail.custname}</td></tr>
	<tr>
	<td>还书时间</td>
	<td>
	<fmt:formatDate type="both" dateStyle="full" 
		value="${borrowOrderDetail.returndate}"/>
	</td>
	</tr>
	<tr><td>是否还书</td><td>${borrowOrderDetail.isreturn}</td></tr>
	<tr><td>备注1</td><td>${borrowOrderDetail.remark1}</td></tr>
	<tr><td>备注2</td><td>${borrowOrderDetail.remark2}</td></tr>
</table>
<br>
<p>
<table border="1">
<tr>
	<td>nid</td>
	<td>id</td>
	<td>bookname</td>
	<td>num</td>
	<td>remark1</td>
	<td>remark2</td> 
</tr>
<c:forEach items="${borrowOrderDetail1}" var="bod1">
<tr>
	<td>${bod1.nid}</td>
	<td>${bod1.id}</td>
	<td>${bod1.bookname}</td>
	<td>${bod1.num}</td>
	<td>${bod1.remark1}</td>
	<td>${bod1.remark2}</td> 
</tr>
</c:forEach>
</table> 
</p>
</div>

</body>
</html>